package com.example.decorator;

/**
 * Created by fongjx on 2021/6/25.
 */
public class TestMain {

    public static void main(String[] args) {
        final ShanghaiBike shanghaiBike = new ShanghaiBike();
        final Bike lightBikeDecorator = new LightBikeDecorator(shanghaiBike);
        final Bike tireBikeDecorator1 = new TireBikeDecorator(lightBikeDecorator);
        final Bike tireBikeDecorator = new TireBikeDecorator(tireBikeDecorator1);
        System.out.println(tireBikeDecorator.getPrice());
        System.out.println(tireBikeDecorator.getDesc());
    }
}
